home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / mkdir.man < prev    next >
Encoding:
Text File  |  1989-06-12  |  3.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MKDIR                 C Library Procedures                  MKDIR
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      mkdir - make a directory file
  10.  
  11. SSYYNNOOPPSSIISS
  12.      mmkkddiirr((ppaatthh,, mmooddee))
  13.      cchhaarr **ppaatthh;;
  14.      iinntt mmooddee;;
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _M_k_d_i_r creates a new directory file with name _p_a_t_h.  The mode
  18.      of the new file is initialized from _m_o_d_e.  (The protection
  19.      part of the mode is modified by the process's mode mask; see
  20.      _u_m_a_s_k(2)).
  21.  
  22.      The directory's owner ID is set to the process's effective
  23.      user ID.  The directory's group ID is set to that of the
  24.      parent directory in which it is created.
  25.  
  26.      The low-order 9 bits of mode are modified by the process's
  27.      file mode creation mask: all bits set in the process's file
  28.      mode creation mask are cleared.  See _u_m_a_s_k(2).
  29.  
  30. RREETTUURRNN VVAALLUUEE
  31.      A 0 return value indicates success.  A -1 return value indi-
  32.      cates an error, and an error code is stored in _e_r_r_n_o.
  33.  
  34. EERRRROORRSS
  35.      _M_k_d_i_r will fail and no directory will be created if:
  36.  
  37.      [ENOTDIR]      A component of the path prefix is not a
  38.                     directory.
  39.  
  40.      [EINVAL]       The pathname contains a character with the
  41.                     high-order bit set.
  42.  
  43.      [ENAMETOOLONG] A component of a pathname exceeded 255 char-
  44.                     acters, or an entire path name exceeded 1023
  45.                     characters.
  46.  
  47.      [ENOENT]       A component of the path prefix does not
  48.                     exist.
  49.  
  50.      [EACCES]       Search permission is denied for a component
  51.                     of the path prefix.
  52.  
  53.      [ELOOP]        Too many symbolic links were encountered in
  54.                     translating the pathname.
  55.  
  56.      [EPERM]        The _p_a_t_h argument contains a byte with the
  57.                     high-order bit set.
  58.  
  59.      [EROFS]        The named file resides on a read-only file
  60.  
  61.  
  62.  
  63. Sprite v1.0              August 26, 1985                        1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MKDIR                 C Library Procedures                  MKDIR
  71.  
  72.  
  73.  
  74.                     system.
  75.  
  76.      [EEXIST]       The named file exists.
  77.  
  78.      [ENOSPC]       The directory in which the entry for the new
  79.                     directory is being placed cannot be extended
  80.                     because there is no space left on the file
  81.                     system containing the directory.
  82.  
  83.      [ENOSPC]       The new directory cannot be created because
  84.                     there there is no space left on the file sys-
  85.                     tem that will contain the directory.
  86.  
  87.      [ENOSPC]       There are no free inodes on the file system
  88.                     on which the directory is being created.
  89.  
  90.      [EDQUOT]       The directory in which the entry for the new
  91.                     directory is being placed cannot be extended
  92.                     because the user's quota of disk blocks on
  93.                     the file system containing the directory has
  94.                     been exhausted.
  95.  
  96.      [EDQUOT]       The new directory cannot be created because
  97.                     the user's quota of disk blocks on the file
  98.                     system that will contain the directory has
  99.                     been exhausted.
  100.  
  101.      [EDQUOT]       The user's quota of inodes on the file system
  102.                     on which the directory is being created has
  103.                     been exhausted.
  104.  
  105.      [EIO]          An I/O error occurred while making the direc-
  106.                     tory entry or allocating the inode.
  107.  
  108.      [EIO]          An I/O error occurred while reading from or
  109.                     writing to the file system.
  110.  
  111.      [EFAULT]       _P_a_t_h points outside the process's allocated
  112.                     address space.
  113.  
  114. SSEEEE AALLSSOO
  115.      chmod(2), stat(2), umask(2)
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0              August 26, 1985                        2
  130.  
  131.  
  132.  
  133.